package com.xuzy.x808.server.processor;

import com.xuzy.x808.entity.MsgHeader;
import com.xuzy.x808.entity.PackageData;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 终端注销消息处理器
 */
@Component
public class ClientLogoutProcessor extends AbstractProcessor {

    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void process(ChannelHandlerContext ctx, PackageData packageData) {
        MsgHeader msgHeader = packageData.getMsgHeader();
        ByteBuf msgBody = packageData.getMsgBody();

        response(ctx, msgHeader.getDevId(), msgHeader.getMsgId(), msgHeader.getSeq());
    }
}
